import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './routes'
import { useAutheRouterHandler,useTitleSetRouterHandle } from './handler'


// 创建路由
const router = createRouter({
    history: createWebHashHistory(),
    routes
})

// 登录认证处理
useAutheRouterHandler(router);
useTitleSetRouterHandle(router);

export default router;